summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2014-04-16 23:16:38 +0200
committerGabriel <g2p.code@gmail.com>2014-04-16 23:19:14 +0200
commit4b1766801b609949c73d9ee6d68f7fdf43ddc4be (patch)
tree672399d8f48388205f9b3f4593a6d282d27ba601
parent5a3a06ee2162946e54e171704905e267fb08ab8b (diff)
downloadbcache-tools-4b1766801b609949c73d9ee6d68f7fdf43ddc4be.tar.zst
Also accept flags with dashes
--data-offset didn't match the documentation. Follow gnu style and accept dashes everywhere.
-rw-r--r--make-bcache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/make-bcache.c b/make-bcache.c
index 63285ef..c626eae 100644
--- a/make-bcache.c
+++ b/make-bcache.c
@@ -359,7 +359,9 @@ int main(int argc, char **argv)
{ "wipe-bcache", 0, &wipe_bcache, 1 },
{ "discard", 0, &discard, 1 },
{ "cache_replacement_policy", 1, NULL, 'p' },
+ { "cache-replacement-policy", 1, NULL, 'p' },
{ "data_offset", 1, NULL, 'o' },
+ { "data-offset", 1, NULL, 'o' },
{ "cset-uuid", 1, NULL, 'u' },
{ "help", 0, NULL, 'h' },
{ NULL, 0, NULL, 0 },