Index: uspace/app/bdsh/cmds/mknewcmd
===================================================================
--- uspace/app/bdsh/cmds/mknewcmd	(revision d752cf4b1be184990dc8cf50aba3798a8f14cfae)
+++ uspace/app/bdsh/cmds/mknewcmd	(revision 491af0758837101e936eb4ead9f4b1ab22a80ead)
@@ -47,6 +47,4 @@
   -h, --help-entry   Entry function for command help (def: help_cmd_${def})
   -a, --alias        Alias (nickname) for this command (def: none)
-  -r, --restrict     Restriction level (interactive, non-interactive, both)
-                     (def: module is both, builtin is interactive only)
   -t, --type         Type of command (module or builtin) (def: module)
   -H, --help         This help summary
@@ -68,6 +66,5 @@
 
   The example would generate a modular command named 'foo', which is also
-  reached by typing 'bar' and available in either interactive or noninteractive
-  mode.
+  reached by typing 'bar'.
 
   Skeletal files do *not* depend on the autoconf generated "config.h" unless you
@@ -98,5 +95,4 @@
 	&${CMDENTRY},
 	&${HELPENTRY},
-	${CMDRESTRICT}
 },
 
@@ -108,5 +104,4 @@
 	&${CMDENTRY},
 	&${HELPENTRY},
-	${CMDRESTRICT}
 },
 
@@ -168,5 +163,5 @@
 #include "cmds.h"
 
-static char *cmdname = "${CMDNAME}";
+static const char *cmdname = "${CMDNAME}";
 
 /* Dispays help for ${CMDNAME} in various levels */
@@ -235,6 +230,6 @@
 [ $# = 0 ] && usage && exit 1;
 
-TEMP=$(getopt -o n:d:e:h:a:r:t:HV \
---long name:,desc:,entry:,help-entry:,alias:,restrict:,type:,help,version \
+TEMP=$(getopt -o n:d:e:h:a:t:HV \
+--long name:,desc:,entry:,help-entry:,alias:,type:,help,version \
 -- "$@") || {
 	echo "Try $PROGNAME --help for help"
@@ -267,9 +262,4 @@
 	-a | --alias)
 		CMDALIAS="$2"
-		shift 2
-		continue
-	;;
-	-r | --restrict)
-		CMDRESTRICT="$2"
 		shift 2
 		continue
@@ -306,27 +296,4 @@
 [ -n "$OUTDIR" ] || OUTDIR="${CMDTYPE}s/${CMDNAME}"
 
-# Builtins typically only need to be available in interactive mode,
-# set the default accordingly.
-[ -n "$CMDRESTRICT" ] || {
-	[ "$CMDTYPE" = "module" ] && CMDRESTRICT="both"
-	[ "$CMDTYPE" = "builtin" ] && CMDRESTRICT="interactive"
-}
-
-# Set the restriction level as the structure expects to see it
-case "$CMDRESTRICT" in
-	0 | both)
-		CMDRESTRICT="0"
-	;;
-	1 | non-interactive)
-		CMDRESTRICT="1"
-	;;
-	-1 | interactive)
-		CMDRESTRICT="-1"
-	;;
-	*)
-		usage
-		exit 1
-	;;
-esac
 
 # Do a little sanity
