diff --git a/clite/commands.js b/clite/commands.js index 9e0f530..d840e3e 100644 --- a/clite/commands.js +++ b/clite/commands.js @@ -51,7 +51,7 @@ Options: -u Display access time in long format -a Do not ignore entries starting with . -1 Display one entry per line - `); +`); } function writeNodeData(st,fd) { @@ -188,7 +188,7 @@ Options: -? Print this help information -d Download the file data, instead of printing it -l Only display files if remote data is loaded - `); +`); } for (var i=1; i Options: -? Print this help information - `); +`); } for (var i=1; i Options: -? Print this help information - `); +`); } for (var i=1; i Options: -p Make the full path, not just the final directory -? Print this help information - `); +`); } for (var i=1; i Options: -? Print this help information - `); +`); } function getModMask(str) { @@ -1020,7 +1020,7 @@ Usage: file [OPTION] Options: -? Print this help information - `); +`); } for (var i=1; i Options: -n N the number of lines to print (default 10) -? Print this help information - `); +`); } function writeFile(fd) { @@ -1392,7 +1392,7 @@ Options: -n N the number of lines to print (default 10) -c N instead of lines, print the last N characters -? Print this help information - `); +`); } function writeFile(fd) { @@ -1491,6 +1491,50 @@ Options: return main(args); }); +clite.commands.load('strip',function(args,env,io) { + var stdio = io.include('stdio'); + + function help() { + stdio.printf(` +strip - remove unnecessary data from strippable files +Usage: strip [OPTION] [FILE...] + +Options: +-? Print this help information +`); + } + + // this is a no op program, it always succeeds + // it exists solely because posix says it should + // but does nothing because there's nothing to strip from files + // "The strip utility shall remove from strippable files named by + // the file operands any information the implementor deems + // unnecessary for execution of those files" - doing nothing is + // compliant + + function main(args) { + for (var i=1; i