]> git.tdb.fi Git - libs/core.git/blobdiff - examples/ls.cpp
Move RefPtr refcount into a struct
[libs/core.git] / examples / ls.cpp
index a31c19bf7240364d514f95b73161b2e8bb3b56ae..3e873180d57bf04b72e53b40281bf9088693a2c2 100644 (file)
@@ -31,9 +31,9 @@ Ls::Ls(int argc, char **argv):
 {
        GetOpt getopt;
        getopt.add_option('l', "long", long_format, GetOpt::NO_ARG);
+       getopt.add_argument("file", args, GetOpt::OPTIONAL_ARG);
        getopt(argc, argv);
 
-       args = getopt.get_args();
        if(args.empty())
                args.push_back(".");
 }